﻿using System.Collections.Generic;
using SQLAnalyticLibrary;

namespace QueryResource.Analytic
{
    class SqlFoldingAnalytic : IAnalytic
    {

        #region IAnalytic 成员

        public Dictionary<int, int> GetFolding(string text)
        {
            SQLAnalytic analy = new SQLAnalytic(text);
            return analy.GetFolding();
        }

        public string[] GetTables(string sql)
        {
            SQLAnalytic analy = new SQLAnalytic(sql);
            return analy.GetTableNames;
        }
        #endregion
    }
}
